home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / snowball.swf / scripts / frame_31 / PlaceObject2_371_153 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2011-08-19  |  922 b   |  42 lines

  1. onClipEvent(enterFrame){
  2.    this._y = _root.snowball._y - 60;
  3.    this._x = _root.snowball._x;
  4.    prevweight = _root.weight - 145;
  5.    if(_root.weight >= 1000 && prevweight <= 1000 && praise1 == 1)
  6.    {
  7.       this.gotoAndPlay("lookinggood");
  8.       praise1 = 0;
  9.    }
  10.    if(_root.weight >= 1500 && prevweight <= 1500 && praise2 == 1)
  11.    {
  12.       this.gotoAndPlay("lookinggood");
  13.       praise2 = 0;
  14.    }
  15.    if(_root.weight >= 1750 && prevweight <= 1750 && praise3 == 1)
  16.    {
  17.       this.gotoAndPlay("yeah");
  18.       praise3 = 0;
  19.    }
  20.    if(_root.weight >= 2000 && prevweight <= 2000 && praise4 == 1)
  21.    {
  22.       this.gotoAndPlay("awesome");
  23.       praise4 = 0;
  24.    }
  25.    if(_root.weight < 2000)
  26.    {
  27.       praise4 = 1;
  28.    }
  29.    if(_root.weight < 1750)
  30.    {
  31.       praise3 = 1;
  32.    }
  33.    if(_root.weight < 1500)
  34.    {
  35.       praise2 = 1;
  36.    }
  37.    if(_root.weight < 1000)
  38.    {
  39.       praise1 = 1;
  40.    }
  41. }
  42.